how to create diagram with for loop

join shbcf.ru